﻿<UserControl x:Class="XPathAutoSuggest.XPathMenu"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >
    
    <!--To simplify MainWindow.xaml, I moved the menu into this file -->
    <Menu>
        <MenuItem Header="_File">
            <MenuItem Header="_New" Command="{Binding NewCommand}" />
            <MenuItem Header="_Open" Command="{Binding OpenCommand}" />
            <MenuItem Header="_Save" Command="{Binding SaveCommand}" />
            <MenuItem Header="Save _As" Command="{Binding SaveAsCommand}" />
            <Separator />
            <!--<MenuItem Header="_Close" Command="ApplicationCommands.Close" />-->
            <MenuItem Header="_Close" Command="{Binding CloseCommand}" />
        </MenuItem>
        <MenuItem Header="_Edit">
            <MenuItem Header="_Format Xml" Command="{Binding FormatCommand}" />
            <MenuItem Command="ApplicationCommands.Undo" />
            <MenuItem Command="ApplicationCommands.Redo" />
            <Separator />
            <MenuItem Command="ApplicationCommands.Cut" />
            <MenuItem Command="ApplicationCommands.Copy" />
            <MenuItem Command="ApplicationCommands.Paste" />
            <MenuItem Command="EditingCommands.Delete" />
        </MenuItem>
        <MenuItem Header="Help">
            <MenuItem Header="Links" Command="{Binding ShowLinksCommand}" />
            <MenuItem Header="_About" Command="{Binding AboutCommand}" />
        </MenuItem>
    </Menu>

</UserControl>
